<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="css/base.css"/>
    <link rel="stylesheet" href="css/x3SubmitSuc.css"/>
    <script src="js/jquery-1.7.2.js"></script>
    <script type="text/javascript">
        var url=location.search;
        var Request = new Object();
        if(url.indexOf("?")!=-1){
            var str = url.substr(1)　//去掉?号
            strs = str.split("&");
            for(var i=0;i<strs.length;i++){
                Request[strs[i ].split("=")[0]]=unescape(strs[i].split("=")[1]);
            }
        }
        var id = Request["id"];

        $(function(){
        	$.ajax({
                url: "../user/join.do",
                async: false,
                type: "POST",
                dataType: "json",
                data: {id:id},
                success: function (data) {
                    if (data.success) {
                        alert("邮件激活成功")
                        /* window.location.href = "../index.html"; */
                    }
                    /* 
                    else {
                        alert("邮件激活失败")
                    } 
                    */
                }
            });
        });

    </script>
</head>
<body>
    <div id="header"></div>
    <div class="xWrap1">
        <img src="images/gbanner.jpg" alt="图片"/>
    </div>
    <div class="xCont2">
        <div class="box1">
            <img src="images/xSub1.png" alt="图片"/>
            <h2>邮件激活成功</h2>
            <p>感谢您的加入，审核通过后我们会以邮件的方式通知您。</p>
            <a href="index.html" class="bTxt">返回首页</a>
        </div>
    </div>
    <div class="gContent4"></div>
    <script>
        $.ajax({
            url:"x1Header.html",
            async:false,
            success:function(html){
                $("#header").append(html);
            }
        })
    </script>
    <script>
        $.ajax({
            url:"x2Footer.html",
            async:false,
            success:function(html){
                $(".gContent4").append(html);
            }
        })
    </script>
</body>
</html>